<%--
  Created by IntelliJ IDEA.
  User: w1057229265
  Date: 2021/6/22
  Time: 23:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="../static/plugins/jquery-easyui-1.9.15/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../static/plugins/jquery-easyui-1.9.15/themes/icon.css">
    <script type="text/javascript" src="../static/plugins/jquery-easyui-1.9.15/jquery.min.js"></script>
    <script type="text/javascript" src="../static/plugins/jquery-easyui-1.9.15/jquery.easyui.min.js"></script>
    <script>
        $(function (){
            $('#dg').datagrid({
                url: '/ServletList?action=getdglist2',
                toolbar: '#tb',
                pagination: true,
                fit: true,
                singleSelect: true,
                columns: [[
                    {field: 'id', title: '用户ID', width: 100},
                    {field: 'uname', title: '用户名', width: 100},
                    {field: 'bname', title: '书名', width: 100},
                    {field: 'uid', title: '用户ID', width: 100},
                    {field: 'bid', title: '书ID', width: 100},
                    {field: 'time', title: '时间', width: 300},
                    {field: 'num', title: '金额', width: 100},
                ]]
            });
        })
    </script>
</head>
<body class="easyui-layout">
<div data-options="region:'center',border:false">
    <table id="dg">

    </table>
</div>
<div id="dd"></div>
<div id="tb" style="height:auto">
<%--    <table>--%>
<%--        <tr>--%>
<%--            <td><a id="btnAdd" href="javascript:void(0)" class="easyui-linkbutton"--%>
<%--                   data-options="iconCls:'icon-add',plain:true">添加</a></td>--%>
<%--            <td>--%>
<%--                <div class="datagrid-btn-separator"></div>--%>
<%--            </td>--%>
<%--            <td><a id="btnEdit" href="javascript:void(0)" class="easyui-linkbutton"--%>
<%--                   data-options="iconCls:'icon-edit',plain:true">编辑</a></td>--%>
<%--            <td>--%>
<%--                <div class="datagrid-btn-separator"></div>--%>
<%--            </td>--%>
<%--            <td><a id="btnDelete" href="javascript:void(0)" class="easyui-linkbutton"--%>
<%--                   data-options="iconCls:'icon-remove',plain:true">删除</a>--%>
<%--            </td>--%>

        </tr>
    </table>
</div>
</body>
</html>
